package com.hmall.user.config;


import com.hmall.user.filters.UserHandlerInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration
//@ComponentScan
public class WebMvcConfig implements WebMvcConfigurer{
    @Autowired
    private UserHandlerInterceptor userHandlerInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //小程序的
        registry.addInterceptor(userHandlerInterceptor);
    }
}